package com.ld.tamp.web.constant;

public class WeiXinConstant {

	public static final String MAP_RESULT_CODE = "code";
	public static final String MAP_RESULT_MSG = "msg";
	public static final String MAP_RETURN_URL = "url";
	public static final String SUCCESS_CODE = "0";
	public static final String SESSION_WEIXIN_CONFIG = "weixin_config";// 微信配置
	public static final String SESSION_VALIDATE_CODE = "validate_code";// 短信验证码
	public static final String SESSION_INVESTOR = "investor";// 登陆的investor
	public static final String SESSION_INVESTOR_ACCOUNT = "investor_account";// 登陆的investor_account
	public static final String SESSION_INVESTOR_TYPE = "investor_type";// 登陆的investor类型
	public static final String SESSION_WEIXIN_USER = "weixin_user";// 微信用户
	public static final String SESSION_PHONE_NUM = "phone_num";
	public static final String SESSION_INVESTOR_NAME = "user_name";
	public static final String SESSION_LOGIN_TYPE = "login_type";
	public static final String SESSION_LOGIN_NORMAL_TYPE_VALUE = "1";// 订阅号或者浏览器登陆
	public static final String SESSION_LOGIN_SERVICE_TYPE_VALUE = "2";// 服务号登录

	public static final String MSG_SYS_EXCEPTION = "系统异常";
	public static final String MSG_HAS_NO_HOLDING = "您还没有持仓，无法完成赎回";
	public static final String MSG_ZERO_HOLDING = "您当前无该产品份额，无法完成赎回";
	public static final String MSG_VALID_MIN_BUY = "很抱歉，您的申购金额小于最小申购金额（%s元）";
	public static final String MSG_VALID_MAX_REDEMP = "很抱歉，您的赎回金额大于最大赎回金额（%s元）";
	public static final String MSG_SAIL_SHARE = "赎回份额不能小于0";
	public static final String MSG_BUY_AMT = "申购金额不能小于0";
	public static final String MSG_PRODUCT_NETVALUE_ZERO = "产品净值为0，请联系管理员";
	public static final String MSG_CANNOT_BUY = "产品已暂停销售";

	public static final String KEY_ORGAN = "key_organ";// 净值曲线颜色
	public static final String KEY_MYDATA_LINE_COLOR = "mydata_line_color";// 净值曲线颜色
	public static final String KEY_MYDATA_COLOR = "mydata_color";
	public static final String KEY_STOCK_LINE_COLOR = "stock_line_color";
	public static final String KEY_STOCK_COLOR = "stock_color";
	public static final String KEY_PURCHASE = "files"; // 风险揭示书
	public static final String KEY_PURCHASE_RISK_FILE = "riskfile"; // 风险揭示书
	public static final String KEY_PURCHASE_CONTRACT_FILE = "contractfile"; // 基金合同
	public static final String KEY_PURCHASE_PURCHASE_FILE = "purchasefile";// 认购书
	public static final String KEY_FAREJOUR = "farejour";

	/** 指数类型 000300：沪深300指数 */
	public static final String INDEX_CODE_000300 = "000300";

	public static final Integer TEMPLATE_ORGAN_INVITATION_CODE_MSG = 1;// 机构邀请码
	public static final Integer TEMPLATE_PRODUCTINFO_UPDATE_MSG = 2;// 净值更新通知
	public static final Integer TEMPLATE_DIVIDEND_UPDATE_MSG = 3;// 分红通知
	public static final Integer TEMPLATE_PRODUCT_OPEN_MSG = 4; //产品开放通知
	public static final Integer TEMPLATE_CLIENT_BING_MSG = 5;// 用户绑定通知
	public static final Integer TEMPLATE_ORDER_MSG = 7;// 下单成功

	/** 申赎状态 1：发起请求 */
	public static final String ORDER_STATUS_1 = "1";
	/** 申赎状态 2：受理请求 */
	public static final String ORDER_STATUS_2 = "2";
	/** 申赎状态 3：回访确认 */
	public static final String ORDER_STATUS_3 = "3";
	/** 申赎状态 4：份额确认 */
	public static final String ORDER_STATUS_4 = "4";
	/** 申赎状态 5：申赎完成 */
	public static final String ORDER_STATUS_5 = "5";

	/** 订单方向 1：申购 */
	public static final Integer ORDER_DIR_1 = 1;
	/** 订单方向 2：赎回 */
	public static final Integer ORDER_DIR_2 = 2;
	/** 订单方向 3：分红转份额 */
	public static final Integer ORDER_DIR_3 = 3;
	/** 订单方向 4：认购 */
	public static final Integer ORDER_DIR_4 = 4;
	/** 订单方向 5：红冲 */
	public static final Integer ORDER_DIR_5 = 5;
	/** 订单方向 6：蓝补 */
	public static final Integer ORDER_DIR_6 = 6;

	/** 绑定状态 0：未绑定 */
	public static final Integer BIND_STATUS_0 = 0;
	/** 绑定状态 2：已绑定 */
	public static final Integer BIND_STATUS_1 = 1;

	/** 合格投资者 0：非合格投资者 */
	public static final Integer QUALIFIED_STATUS_0 = 0;
	/** 合格投资者 1：合格投资者 */
	public static final Integer QUALIFIED_STATUS_1 = 1;

	/** 认证状态 0：未认证 */
	public static final Integer AUTH_STATUS_0 = 0;
	/** 认证状态 1：已认证 */
	public static final Integer AUTH_STATUS_1 = 1;

	/** 客户状态 0：删除 */
	public static final Integer INVESTOR_STATUS_0 = 0;
	/** 客户状态 1：可用 */
	public static final Integer INVESTOR_STATUS_1 = 1;

	/** 发行类型0： 公开 */
	public static final Integer RELEASE_STATUS_PUBLIC = 1;
	/** 发行类型 1：非公开 */
	public static final Integer RELEASE_STATUS_UNPUBLIC = 2;
	/** 发行类型 2：半公开 */
	public static final Integer RELEASE_STATUS_HALFPUBLIC = 3;

	/** 产品状态 0：删除 */
	public static final Integer PRODUCT_STATUS_0 = 0;
	/** 产品状态 1:使用 */
	public static final Integer PRODUCT_STATUS_1 = 1;

	/** 产品时期 1：募集期 */
	public static final Integer PRODUCT_CYCLE_1 = 1;
	/** 产品时期 2：开放期 */
	public static final Integer PRODUCT_CYCLE_2 = 2;
	/** 产品时期 3：封闭期 */
	public static final Integer PRODUCT_CYCLE_3 = 3;

	/** 交易权限 ：可申购赎回 */
	public static final Integer TRANSACTION_RIGHTS_1 = 1;
	/** 交易权限 ：可申购不可赎回 */
	public static final Integer TRANSACTION_RIGHTS_2 = 2;
	/** 交易权限 ：不可申购可赎回 */
	public static final Integer TRANSACTION_RIGHTS_3 = 3;
	/** 交易权限 ：不可申购不可赎回 */
	public static final Integer TRANSACTION_RIGHTS_4 = 4;

	/** 费用类型 1：业绩报酬 */
	public static final Integer FARE_TYPE_1 = 1;
	/** 费用类型 2：手续费 */
	public static final Integer FARE_TYPE_2 = 2;

	/** 风险接受状态 */
	public static final Integer ACCEPT_RISK_STATUS_0 = 0;
	public static final Integer ACCEPT_RISK_STATUS_1 = 1;

	public static final Integer QUESTION_STATUS_INIT = 0;// 未答题
	public static final Integer QUESTION_STATUS_ANSWER = 1;// 已答题

	public static final Integer INVESTOR_TYPE_NORMAL = 1;// 普通用戶
	public static final Integer INVESTOR_TYPE_ORGAN = 2;// 机构用戶

	/** 客户状态1 ：可用 **/
	public static final Integer ACCOUNT_STATUS_ENABLE = 1;
	/** 客户状态2 ：删除 **/
	public static final Integer ACCOUNT_STATUS_DISABLE = 0;

	public static final String COMPONENT_APPID = "wechat.component.appid";
	public static final String COMPONENT_APPSECRET = "wechat.component.appsecret";
	public static final String COMPONENT_TOKEN = "wechat.component.token";
	public static final  String COMPONENT_ENCODING_AES_KEY = "wechat.component.encodingAesKey";
	
	/** 事件消息类型1 ：文字 **/
	public static final Long EVENT_MSG_TYPE_TEXT = 1L;
	/** 事件消息类型1：图文 **/
	public static final Long EVENT_MSG_TYPE_NEWS = 2L;
	
	/** 公众号类型 ：服务号 **/
	public static final String SERVICE_TYPE_2 = "2";
	/** 授权方认证类型：已认证 **/
	public static final String VERIFY_TYPE_0 = "0";
	
	
	
}
